
<div id="dataArea">
    <form role="form" method="post" action="{:U(ACTION_NAME)}">
        <!-- general form elements -->
        <div class="box-body" style="padding-bottom:0">

            <form role="form" method="post" action="{:U(ACTION_NAME)}">
                <if condition="ACTION_NAME eq 'edit'">
                    <input type="hidden" id="uid" name="uid" value="{$res.uid}">
                </if>

                <div class="col-md-6">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="username">帐号</label>
                                <if condition="ACTION_NAME eq 'edit'">
                                    {$res.username}
                                    <else/>
                                    <input type="text" placeholder="" id="username" name="username" value="{$res.username}" class="form-control">
                                </if>
                            </div>
                            <div class="form-group">
                                <if condition="$userInfo.rid eq 1">
                                    <label for="rid">所属角色</label>
                                    <select name="rid" id="rid" class="form-control">
                                        <volist name="role" id="r">
                                            <option value="{$r.rid}"
                                            <if condition="$res[rid] eq $r[rid]">selected="selected"</if>
                                            >{$r.rname}</option>
                                        </volist>
                                    </select>
                                    <else/>
                                    <label>所属角色: </label>
                                    <span>&nbsp; {$userInfo.rname}</span>
                                </if>
                            </div>
                            <div class="form-group">
                                <label for="password">密码</label>
                                <input type="password" placeholder="" id="password" name="password" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="c_password">确认密码</label>
                                <input type="password" placeholder="" id="c_password" name="c_password" class="form-control">
                            </div>

                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div>
                <!-- /.col-md -->

                <div class="col-md-6">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="nickname">昵称</label>
                                <input type="text" placeholder="" id="nickname" name="nickname" value="{$res.nickname}" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="email">邮箱</label>
                                <input type="text" placeholder="" id="email" name="email" value="{$res.email}" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="credits">积分</label>
                                <input type="text" placeholder="" id="credits" name="credits" value="{$res.credits|intval}" class="form-control took-w100">
                            </div>
                            <div class="form-group">
                                <label>状态</label>
                                <div class="radio">
                                    <label>
                                        <input type="radio" id="statusRadio1" name="status" value="1"
                                        <if condition="$res[status] eq 1">checked="checked"</if>
                                        />
                                        启用
                                    </label>

                                    <label>
                                        &nbsp;&nbsp;
                                        <input type="radio" id="statusRadio2" name="status" value="0"
                                        <if condition="$res[status] eq 0">checked="checked"</if>
                                        />
                                        禁用
                                    </label>
                                </div>
                            </div>

                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div>
                <!-- /.col-md -->

            </form>

        </div><!-- /.box-body -->
    </form>
</div>